package trading.ctm.yunjing.module.auction.activity

import android.os.Bundle
import android.support.v7.widget.LinearLayoutManager
import cc.vv.baselibrary.activity.BaseActivity
import cc.vv.baselibrary.view.BaseTopBarView
import kotlinx.android.synthetic.main.activity_auction_list.*
import trading.ctm.yunjing.R
import trading.ctm.yunjing.module.auction.adapter.AuctionListAdapter

/**
 * @desc 竞拍榜单
 * @author zouxiaorui
 * @date  2018/8/8
 */
class AuctionListActivity : BaseActivity(){

    override fun initLayoutRes(): Int {
        return R.layout.activity_auction_list
    }

    override fun initView(bundle: Bundle?) {
        super.initView(bundle)
        btbv_aal_title.setWhetherShowDividerView(false)
        rv_aal_action_list.layoutManager = LinearLayoutManager(this, LinearLayoutManager.VERTICAL, false)
    }

    override fun initData(data: Bundle?) {
        super.initData(data)
    }

    override fun initAction(data: Bundle?) {
        super.initAction(data)

        var data = listOf("IIIIIIIIIIIIII","IIIIIIIIIIIIII","IIIIIIIIIIIIII","IIIIIIIIIIIIII","IIIIIIIIIIIIII","IIIIIIIIIIIIII","IIIIIIIIIIIIII","IIIIIIIIIIIIII")
        rv_aal_action_list.adapter = AuctionListAdapter(R.layout.adapter_auction_list, data)

        btbv_aal_title.setEventInterface(object : BaseTopBarView.EventInterface{
            override fun leftOnClick() {
                finish()
            }

            override fun leftCloseClick() {
            }

            override fun rightOnClick() {
            }

        })
    }

}